import Https from '@/utils/https'

// 页面上方的概览 待发布,成功,失败
const queryGetOverviewReq = (params) => Https.get('/api/v1/integration/api/ws/getOverview', params)

// 重跑任务
const queryReRunTaskReq = (params) => Https.get('/api/v1/integration/api/ws/reRunTask', params, { needCode: true })

// 下线任务
const queryDownlineTaskReq = (params) => Https.get('/api/v1/integration/api/ws/downlineTask', params, { needCode: true })

// 删除任务
const queryDeleteReq = (params) => Https.get('/api/v1/integration/api/ws/delete', params, { needCode: true })

// 发布任务
const queryPublishTaskReq = (params) => Https.get('/api/v1/integration/api/ws/publishTask', params, { needCode: true })

// 终止
const queryStopReq = (params) => Https.post('/api/v1/integration/api/http/stop', params, { needCode: true, json: false })

export {
  queryGetOverviewReq, queryReRunTaskReq, queryDownlineTaskReq, queryDeleteReq, queryPublishTaskReq, queryStopReq,
}
